package com.devops;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.devops.admin.config.EnableAliyunAccountMultiConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
@EnableApolloConfig
@EnableAliyunAccountMultiConfig
@ServletComponentScan
@EnableScheduling
public class DevopsApplication {
    public static void main(String[] args){
        //Spring应用启动起来
        ConfigurableApplicationContext context = SpringApplication.run(DevopsApplication.class,args);
        context.start();
    }
}
